﻿@model blacksoftFINAL.Models.Reserva

@{
    ViewBag.Title = "Create";
}

@{
    Layout = "~/Views/Shared/_LayoutReserva.cshtml"; 
}

<h2>Create</h2>


@using (Html.BeginForm()) 
{
    @Html.AntiForgeryToken()
    
    <div class="form-horizontal">
        <h4>Reserva</h4>
        <hr />
        @Html.ValidationSummary(true)

        <div class="form-group">
            @Html.LabelFor(model => model.Origen, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.Origen)
                @Html.ValidationMessageFor(model => model.Origen)
                
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.Destino, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.Destino)
                @Html.ValidationMessageFor(model => model.Destino)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.TipoSalida, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.TipoSalida)
                @Html.ValidationMessageFor(model => model.TipoSalida)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.FechaRegistro, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.FechaRegistro)
                @Html.ValidationMessageFor(model => model.FechaRegistro)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.FechaLimite, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.FechaLimite)
                @Html.ValidationMessageFor(model => model.FechaLimite)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.FechaSalida, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.FechaSalida)
                @Html.ValidationMessageFor(model => model.FechaSalida)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.FechaRetorno, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.FechaRetorno)
                @Html.ValidationMessageFor(model => model.FechaRetorno)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.Estado, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.Estado)
                @Html.ValidationMessageFor(model => model.Estado)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.TipoServicio, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.TipoServicio)
                @Html.ValidationMessageFor(model => model.TipoServicio)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.NumeroPasajeros, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.NumeroPasajeros)
                @Html.ValidationMessageFor(model => model.NumeroPasajeros)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.IDPersona, "IDPersona", new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.DropDownList("IDPersona", String.Empty)
                @Html.ValidationMessageFor(model => model.IDPersona)
            </div>
        </div>

        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="Create" class="btn btn-default" />
            </div>
        </div>
    </div>
}

<div>
    @Html.ActionLink("Back to List", "Index", "Home");
</div>

